<!doctype html>
<html class="no-js">
<head>
	<include file="./Apps/WebApp/View/default/common_meta.html" />
	<title>修改内容</title>

	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/AmazeUI/assets/css/amazeui.min.css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/common.css?v={$WST_V}">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/orders_management.css?v={$WST_V}">







	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<link rel="stylesheet" href="__ROOT__/Apps/WebAPP/View/default/css/normalize.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebAPP/View/default/css/list.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebAPP/View/default/css/edit_regain.css" type="text/css">

	<script type="text/javascript" src="__ROOT__/Apps/WebAPP/View/default/js/jquery-1.7.2.min.js"></script>

	<script type="text/javascript">

		!function(a,b){function c(){var b=f.getBoundingClientRect().width;b/i>540&&(b=540*i);var c=b/10;f.style.fontSize=c+"px",k.rem=a.rem=c}var d,e=a.document,f=e.documentElement,g=e.querySelector('meta[name="viewport"]'),h=e.querySelector('meta[name="flexible"]'),i=0,j=0,k=b.flexible||(b.flexible={});if(g){console.warn("将根据已有的meta标签来设置缩放比例");var l=g.getAttribute("content").match(/initial\-scale=([\d\.]+)/);l&&(j=parseFloat(l[1]),i=parseInt(1/j))}else if(h){var m=h.getAttribute("content");if(m){var n=m.match(/initial\-dpr=([\d\.]+)/),o=m.match(/maximum\-dpr=([\d\.]+)/);n&&(i=parseFloat(n[1]),j=parseFloat((1/i).toFixed(2))),o&&(i=parseFloat(o[1]),j=parseFloat((1/i).toFixed(2)))}}if(!i&&!j){var p=(a.navigator.appVersion.match(/android/gi),a.navigator.appVersion.match(/iphone/gi)),q=a.devicePixelRatio;i=p?q>=3&&(!i||i>=3)?3:q>=2&&(!i||i>=2)?2:1:1,j=1/i}if(f.setAttribute("data-dpr",i),!g)if(g=e.createElement("meta"),g.setAttribute("name","viewport"),g.setAttribute("content","initial-scale="+j+", maximum-scale="+j+", minimum-scale="+j+", user-scalable=no"),f.firstElementChild)f.firstElementChild.appendChild(g);else{var r=e.createElement("div");r.appendChild(g),e.write(r.innerHTML)}a.addEventListener("resize",function(){clearTimeout(d),d=setTimeout(c,300)},!1),a.addEventListener("pageshow",function(a){a.persisted&&(clearTimeout(d),d=setTimeout(c,300))},!1),"complete"===e.readyState?e.body.style.fontSize=12*i+"px":e.addEventListener("DOMContentLoaded",function(){e.body.style.fontSize=12*i+"px"},!1),c(),k.dpr=a.dpr=i,k.refreshRem=c,k.rem2px=function(a){var b=parseFloat(a)*this.rem;return"string"==typeof a&&a.match(/rem$/)&&(b+="px"),b},k.px2rem=function(a){var b=parseFloat(a)/this.rem;return"string"==typeof a&&a.match(/px$/)&&(b+="rem"),b}}(window,window.lib||(window.lib={}));</script>
	<style type="text/css">
	.return_right,.return_center{
		width:1.466667rem;
		height:0.586667rem;
		float: right;
	}
	.return_left{
		width:2.133333rem;
		height:0.586667rem;
		float: right;
	}
	.regain_container,.regain_zhao{
		position: relative;
	}
	.img_float{
		position: relative;
		float: left;
	}
	fieldset{
		border:0;
	}
	.am-panel-default{
		border:0;
	}
</style>
















</head>
<body>






















<header data-am-widget="header" class="am-header am-header-default am-header-fixed wst-inner-page-nav" id="clip" style="display:none;">
	<div class="am-header-left am-header-nav" onclick="closeUploadArea();">关闭</div>
	<div class="am-header-right am-header-nav" id="clipBtn">上传</div>
</header>
<div class="complains-container">
	<section class="am-panel am-panel-default">
		<div class="am-panel-bd" style="padding-left:0;padding-right:0;">
			<form class="am-form">
				<fieldset>
					<div class="am-form-group am-form-file">
						<!--<button type="button" class="am-btn am-btn-danger am-btn-sm addImg" id="addImg"><i class="am-icon-cloud-upload"></i> 上传附件(最多5张)</button>-->
						<div class="return">
							<div class="return_right" onclick="Choose('{$vo.createTime}','{$wxNumber}')">
								<i style="font-style:normal;display:inline-block;float:right;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">删除</i><img src="__ROOT__/Apps/WebAPP/View/default/images/edit_modify_the_content_delete_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:right;">
							</div>
							<div class="return_center" onclick="recoverpark('{$ko}','{$vo.createTime}','{$wxNumber}')">
								<img src="__ROOT__/Apps/WebAPP/View/default/images/edit_modify_the_content_edit_the_text_icon_sel.png" style="width:0.586667rem;height:0.586667rem;float:left;">
								<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;opacity: 0.6;">恢复</i>
							</div>

							<div class="return_left">
								<img src="__ROOT__/Apps/WebAPP/View/default/images/edit_modify_the_content_add_to_photo_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:left;">
								<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">添加图片</i>
							</div>
						</div>
						<input type="file" id="uploadImg" class="uploadfile-input" accept="image/*">
						<div id="complainsImg" class="complains-img-area"></div>
						<div style="clear:both;"></div>
					</div>

				</fieldset>
			</form>
		</div>
	</section>
</div>

<div class="upload-modal" id="upload_modal">
	<div id="clipArea" class="clipArea"></div>
	<input type="hidden" id="imgData" autocomplete="off">
</div>
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="wst-default-loading">
	<div class="am-modal-dialog">
		<div class="am-modal-hd">Loading...</div>
		<div class="am-modal-bd">
			<span class="am-icon-spinner am-icon-spin"></span>
		</div>
	</div>
</div>

<include file="./Apps/WebApp/View/default/common_js.html" />
<script src="__ROOT__/Apps/WebApp/View/default/Photoclip/iscroll-zoom.js"></script>
<script src="__ROOT__/Apps/WebApp/View/default/Photoclip/hammer.js"></script>
<script src="__ROOT__/Apps/WebApp/View/default/Photoclip/jquery.photoClip.js"></script>
<script src="__ROOT__/Apps/WebApp/View/default/js/order_complains.js?v={$WST_V}"></script>
<script>
	//图片上传
	$("#clipArea").photoClip({
		width: 350,
		height: 350,
		file: "#uploadImg",
		view: "#view",
		ok: "#clipBtn",
		loadStart: function() {
			$("#wst-default-loading").modal();
		},
		loadComplete: function() {
			$('#clipArea .photo-clip-mask').remove();//不需要截图，因此移除
			$("#wst-default-loading").modal('close');
		},
		clipFinish: function(dataURL) {
			var imgData = $('#clipArea .photo-clip-view').find('img').attr('src');
			if(!imgData || imgData==''){
				wstMsg('请先选择图片');
				return false;
			}
			$("#wst-default-loading").modal();
			$.post(Think.U('WebApp/WxBooks/uploadBookPicture'), {'imgData': imgData}, function(data){
				var json = WST.toJson(data);
				if(json.status==1){
					var str = '<div class="complains-annex">';
					str += '<i class="am-icon-close del-cover-icon" onclick="javascript:delImg(this);"></i>';
					str += '<img class="complains-img" src="'+ ThinkPHP.ROOT +'/'+json.filepath+'">';
					str += '<input type="hidden" class="imgSrc" value="'+json.filepath+'">';
					str += '</div>';
					$('#complainsImg').append(str);
					isDisabledButton();
				}else{
					wstMsg('上传失败，请重试');
				}
				$("#wst-default-loading").modal('close');
				closeUploadArea();
			});
		}
	});






</script>
<script type="text/javascript" src="__ROOT__/Apps/WebAPP/View/default/js/list.js">
</script>













</script>
</body>
</html>